package com.jsu.springboot_crop.dao;

import com.jsu.springboot_crop.entity.Question;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface QuestionDao {
    //条件查询问答
    List<Question>selectAllByKeys(@Param("keys")String keys);
    //根据id查询问答
    Question selectByPrimaryKey(Integer id);
    //增加问答
    int insertSelective(Question record);
    //查询个人问答
    List<Question>selectByQuestion(Question record);
    //根据id修改问答
    int updateByPrimaryKeySelective(Question record);
    //删除问答
    int deleteByPrimaryKey(Integer id);
}
